package com.yjd.comm.statistics.service;

import java.util.List;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.statistics.model.WalFundsAnalysisModel;

/**
 * <b>description</b>：小钱包资金统计业务接口<br>
 * <b>time</b>：2015-12-22 10:56:54 <br>
 * <b>author</b>：  ready zhoujin@yijiedai.com
 */
public interface IWalFundsAnalysisService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public WalFundsAnalysisModel insert(WalFundsAnalysisModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(WalFundsAnalysisModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int delete(long id) throws Exception;
	
	
	/**
	 * 获取最后一次的统计记录
	* @return
	* @throws Exception
	* WalFundsAnalysisModel
	 */
	public WalFundsAnalysisModel getLastModel() throws Exception;
	
	
	/**
	 * 资金统计
	* @param statisticsModel
	* @throws Exception
	* void
	 */
	public void statistics(WalFundsAnalysisModel statisticsModel)
			throws Exception;
	
	/**
	 * 初始化统计
	* @param dateList
	* @throws Exception
	* void
	 */
	public void statistics(List<Long> dateList) throws Exception;

}
